<template>
  <div>
    <ul>
      <router-link custom v-slot="{navigate}" to="/movie/comedy"><li @click="navigate">喜剧</li></router-link>
      <router-link custom v-slot="{navigate}" to="/movie/children"><li @click="navigate">少儿</li></router-link>
    </ul>
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  mounted() {
    // console.log('movie')
    console.log(this.$route.query.id)
  },
}
</script>

<style lang='stylus' scoped>

</style>